package com.eshopkeeper.provider.sys;

import com.baomidou.mybatisplus.plugins.Page;
import com.eshopkeeper.core.base.BaseProvider;
import com.eshopkeeper.model.sys.SysRole;
import com.eshopkeeper.model.sys.ext.SysMenuBean;
import com.eshopkeeper.model.sys.ext.SysRoleBean;

import java.util.List;
import java.util.Map;

public interface ISysRoleProvider extends BaseProvider<SysRole> {

    public Page<SysRoleBean> queryBean(Map<String, Object> params);

    /**
     * 根据角色Id获取权限选项value
     */
    public List<String> getPermissions(Long id);

	public void insertSysRole(SysRole sysRole);

	public void updateSysRole(Map<String, Object> paramMap);
	
	 public List<SysMenuBean> getMenuList(Long id);

    List<Map<String,Object>> selSysRoleList();
    
    public int deleteRoleMenuById(long id);
    
    public int batchAddRoleMenu(List<String> menuIds, Long roleId);

	List<SysMenuBean> getMenuFuncList(Long id);
	
	public int deleteRoleMenuFuncById(long id);

	public int batchAddRoleMenuFunc(List<Map<String, Object>> list);
}
